// 该文件是专门用于创建整个应用的路由器
import { createRouter, createWebHistory, createWebHashHistory } from "vue-router"

const routes = [
    {
        path: '/',
        component: () => import('../pages/home.vue')
    },
    {
        path: '/dazi',
        component: () => import('../pages/dazi.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

// 创建router实例对象并暴露
export default router
